// import Container from "@/components/Layout/container";
// import Main from "@/components/Layout/main";
import App from "@/views";

const routes = [
  {
    path: "/app-vue",
    name: "app-vue",
    component: App,
    alias: '/',
    redirect: "/app-vue/login",
    meta: {
      title: "农村基层",
    },
    children: [
      {
        // 大屏态势图
        path: '/app-vue/situationMap',
        name: 'situationMap',
        component: () => import('@/views/situationMap/index'),
        meta: {
          title: "大屏态势图",
          isAuth: false,
          isLogin: false
        }
      },
      {
        // 登录页
        path: '/app-vue/login',
        name: 'situatloginionMap',
        alias: '/',
        component: () => import('@/views/login/login'),
        meta: {
          title: "登录",
          isAuth: false,
          isLogin: false
        }
      },
      {
        // 首页
        path: '/app-vue/index',
        name: 'index',
        component: () => import('@/views/layout/index'),
        redirect: "/ruralInfo",
        children: [
          {
            // 401
            path: '/401',
            name: '401',
            component: () => import('@/views/error/401'),
            meta: {
              title: "无权限",
              isAuth: false,
              isLogin: true
            }
          }, {
            // 村情况介绍
            path: '/ruralInfo',
            name: 'ruralInfo',
            component: () => import('@/views/ruralGrassroots/villageIntroduction/index'),
            meta: {
              title: "基本情况",
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          }, {
            // 村情况介绍 - 新增
            path: '/app-vue/villageIntroduction/add',
            name: 'add',
            component: () => import('@/views/ruralGrassroots/villageIntroduction/form'),
            meta: {
              title: "基本情况新增",
              type: 1,
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          },
          {
            // 村情况介绍 - 编辑
            path: '/app-vue/villageIntroduction/edit',
            name: 'edit',
            component: () => import('@/views/ruralGrassroots/villageIntroduction/form'),
            meta: {
              title: "基本情况编辑",
              type: 2,
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          },
          {
            // 村情况介绍 - 查看
            path: '/app-vue/villageIntroduction/view',
            name: 'view',
            component: () => import('@/views/ruralGrassroots/villageIntroduction/form'),
            meta: {
              title: "基本情况查看",
              type: 3,
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          }, {
            // 网格情况
            path: '/ruralGridDistribution',
            name: 'gridTrichromaticGraph',
            component: () => import('@/views/ruralGrassroots/gridTrichromaticGraph/distribution/index'),
            meta: {
              title: "网格情况",
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          }, {
            // 堡垒指数
            path: '/rural_party_activities',
            name: 'rural_party_activities',
            component: () => import('@/views/ruralGrassroots/ruralPartyActivities/index'),
            meta: {
              title: "党组织活动",
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          }, {
            // 连心指数
            path: '/rural_defiled_index',
            name: 'rural_defiled_index',
            component: () => import('@/views/ruralGrassroots/ruralDefiledIndex/index'),
            meta: {
              title: "连心服务",
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          }, {
            // 支部情况
            path: '/rural_party_branch_personnel_distribute',
            name: 'rural_party_branch_personnel_distribute',
            component: () => import('@/views/ruralGrassroots/ruralPartyBranchPersonnelDistribute/index'),
            meta: {
              title: "党组织情况",
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          }, {
            // 发展指数
            path: '/rural_collective_economy',
            name: 'rural_collective_economy',
            component: () => import('@/views/ruralGrassroots/ruralCollectiveEconomy/index'),
            meta: {
              title: "集体经济",
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          }, {
            // 建设标准
            path: '/rural_assessment_criteria',
            name: 'rural_assessment_criteria',
            component: () => import('@/views/ruralGrassroots/ruralAssessmentCriteria/index'),
            meta: {
              title: "建设标准",
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          },
          {
            // 指标评分
            path: '/rural_criteria_score',
            name: 'rural_criteria_score',
            component: () => import('@/views/ruralGrassroots/ruralCriteriaScore/index'),
            meta: {
              title: "指标评分",
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          },
          {
            // 指标评分新增
            path: '/rural_criteria_score/add',
            name: 'ruralCriteriaScore',
            component: () => import('@/views/ruralGrassroots/ruralCriteriaScore/form'),
            meta: {
              title: "指标评分新增",
              type: 1,
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          },
          {
            // 指标评分查看
            path: '/rural_criteria_score/view',
            name: 'ruralCriteriaScore',
            component: () => import('@/views/ruralGrassroots/ruralCriteriaScore/form'),
            meta: {
              title: "指标评分查看",
              type: 3,
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          },
          {
            // 指标评分修改
            path: '/rural_criteria_score/update',
            name: 'ruralCriteriaScore',
            component: () => import('@/views/ruralGrassroots/ruralCriteriaScore/form'),
            meta: {
              title: "指标评分修改",
              type: 2,
              btnAuthList: [],
              isAuth: true,
              isLogin: true
            }
          },
          {
            // 测评审批
            path: '/rural_project_evaluation_approval',
            name: 'rural_project_evaluation_approval',
            component: () => import('@/views/ruralGrassroots/evaluationApproval/index'),
            meta: {
              title: "指标审核"
            }
          },
          {
            // 测评审批
            path: '/rural_project_evaluation_approval/approval',
            name: 'ruralProjectEvaluationApproval',
            component: () => import('@/views/ruralGrassroots/evaluationApproval/form'),
            meta: {
              title: "指标审核",
              type: 3
            }
          }
        ]
      },
    ]
  },
];

export default routes;
